package deepr.exception;

import deepr.anno.ActionType;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@Component
@NoArgsConstructor
public class DeeprException extends Exception {
  private ActionType actionType;
  private boolean tip = true;
  private Object data;

  public DeeprException(String message) {
    super(message);
  }

  public DeeprException(String message, Object data) {
    super(message);
    this.data = data;
  }

}
